var getDistanceFromTo = function(x, y, x2, y2)
{
	var xDiff = x2 - x;
	var yDiff = y2 - y;
	
	return Math.sqrt((xDiff*xDiff) + (yDiff*yDiff));
}

var findSeperators = function(str, schar)
{
	var strArray = new Array();
	var charIndex = 0;
	for(var i=0;i<str.length;i+=1)
	{
		if ( str.charAt(i) == schar)
		{
			strArray.push(i);
		}
	}
	
	return strArray;
}

var getFontPixelHeight = function(pt)
{
	var tableEntry = null;
	
	for(var i=0;i<FontPointLUT.length;i+=1)
	{
		tableEntry = FontPointLUT[i];
		if (tableEntry.point == pt)
		{
			return tableEntry.pixel;
		}
	}
	
	return -1;
}